package com.matianle.springboot_code1.service;

import com.matianle.springboot_code1.pojo.User;
import com.matianle.springboot_code1.pojo.dto.UserDto;

public interface IUserService {
    /*
    * 插入用户
    * @param user
    * */
    User add(UserDto user);

    User getUser(Integer userId);
    /**
     * 修改用户
     * @param user
     * @return
     */
    User edit(UserDto user);

    /**
     * 删除用户
     * @param
     * @return
     */
    void delete(Integer userId);

}
